//
//  DMChatViewController.m
//  DMGME
//
//  Created by MC on 15/10/19.
//  Copyright © 2015年 GYP. All rights reserved.
//

#import "DMChatViewController.h"
#import "DMCustomViewController.h"
@interface DMChatViewController ()

@end

@implementation DMChatViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.conversationListTableView.separatorStyle = UITableViewCellSelectionStyleNone;
}
-(void)onSelectedTableRow:(RCConversationModelType)conversationModelType conversationModel:(RCConversationModel *)model atIndexPath:(NSIndexPath *)indexPath
{
    DMCustomViewController *conversationVC = [[DMCustomViewController alloc]init];
    conversationVC.conversationType =model.conversationType;
    conversationVC.targetId = model.targetId;
    conversationVC.userName =model.conversationTitle;
//    conversationVC.title = model.conversationTitle;
//    NSLog(@"=== %@",model.conversationTitle);

    [self.navigationController pushViewController:conversationVC animated:YES];
  
}
- (NSMutableArray*)willReloadTableData:(NSMutableArray *)dataSource{
    [super willReloadTableData:dataSource];
//    NSLog(@"%@",dataSource);
    return dataSource;
}
- (void)viewDidAppear:(BOOL)animated{
//    NSLog(@"%@",self.conversationListDataSource);
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
